package cn.com.lms.business.exam.persistence.repository;

import cn.com.lms.business.exam.persistence.entity.PaperExtra;

import com.bnzj.core.persistence.repository.BaseRepository;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;

import javax.transaction.Transactional;
import java.util.Collection;

@Repository
public interface PaperExtraRepository extends BaseRepository<PaperExtra,Long> {


    @Transactional
    @Modifying
    @Query(value = "delete from bnz_exam_paper_extra where paper_id=?1", nativeQuery = true)
    public void deleteByPaperId(Long paperId);

}
